import { Image } from "react-native";
import type { StyleProp, ImageProps, ImageStyle } from "react-native";

import styles from "./styles";

export type Props = {
  /** 图片地址 */
  uri: string;
  /** 样式 */
  style?: StyleProp<ImageStyle>;
} & Pick<ImageProps, "resizeMode">;

/** 全屏图片 */
const FullScreenImg = (props: Props) => {
  return <Image style={[styles.container, props.style]} source={{ uri: props.uri }} resizeMode={props.resizeMode} />;
};

export default FullScreenImg;
